package com.mogujie.tt.ui.activity;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Toast;


import com.mogujie.tt.R;
import com.mogujie.tt.ui.base.QZBaseActivity;

/**
 * Created by Administrator on 2015/11/14.
 */
public class ElectronicSchoolBagActivity extends QZBaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        LayoutInflater.from(this).inflate(R.layout.tt_activity_electronic_school_bag, topContentView);
        showTopInformation("电子书包");

        findViewById(R.id.iv_my_homework).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Toast.makeText(ElectronicSchoolBagActivity.this,"正准备进入我的作业......",Toast.LENGTH_SHORT).show();
            }
        });

        findViewById(R.id.iv_small_class).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Toast.makeText(ElectronicSchoolBagActivity.this,"正准备进入我的微课堂......",Toast.LENGTH_SHORT).show();
            }
        });

    }


    /**
     * 显示顶部信息
     */
    private void showTopInformation(String test){
        if(test == null){
            return;
        }
        setTopBarDisplay();

        setCenterText(test);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        onDest();
    }

    public void onClickExit(View view){
        finish();
    }

}


